<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="referrer" content="no-referrer" />
    <title>电网图</title>
    <style>
        body {
            position: absolute;
            margin: 0;
            width: 100%;
            height: 100%;
        }

        #mapContainer {
            left: 0px;
            top: 0px;
            width: 100%;
            height: 100%;
            float: left;
        }
    </style>
</head>

<body>
    <div id="mapContainer" style="position: relative;"></div>
</body>
<script src='/GiswayEngine.js'></script>
<script src="/examples/model//FlowLine1.js"></script>
<script src="/examples/demo/ElectricityNetTest.js"></script>

<script type="text/javascript">
    var eletricPlaneArray = [];

    window.app = new GE.App('mapContainer', {
        position: [120.2333057372291, 30.333910661137568, 2500], //相机的位置
        lookAt: [120.2333057372291, 30.333910661137568, 0], //相机看向的地图位置
        cameraScrollSpeed: 5, //鼠标滚动时，控制相机上下移动的速度
        minZoom: 13, //允许地图的最小层级
        maxZoom: 18, //允许地图的最大层级
        ambientLightIntensity: 5,
        useDefaultTexture: true, //是否使用瓦片默认纹理
        background: "Color", //背景的类型，参数有如下类型：None, Fog, Color, Gradient, Image, Sky, Image。使用Fog地图的性能会比较好
        // backGroundColorA:'#AAAAFF', //当background的值为Gradient时，需要配置该参数。最下端颜色，默认值为#0000FF
        // backGroundColorB:'#0000FF', //当background的值为Gradient时，需要配置该参数。最上端颜色，默认值为#FF0000
        backGroundColor: '#4B0082', //当background的值为Color时，需要配置该参数，默认值为#00BFFF
        // imageUrl: 'http://localhost:9000/examples/assets/img_logo.39362dc1.png', //当background的值为Image时，需要配置该参数。默认值为null
        baseLayer: [
            
        ]
    });
    loadElectricityNet();
    window.app.on('Click', function (e) {
        console.log(e);
    });


</script>

</html>